<template>
    <div class="all">
        <div class="user">
            <div class="avatar">
                <img src="@/assets/vue.svg" alt="用户头像">
            </div>
            <div class="name">
                <h2>管芷潼</h2>
            </div>
            <div class="desc">
                <p>热爱阅读，喜欢收集优美的文字。在这里记录生活，分享感动。</p>
            </div>
            <div class="bt">
                <router-link>
                    <el-button class="bt" type="primary" color="#626aef" :dark="isDark" plain>
                        编辑资料
                    </el-button>
                </router-link>
            </div>
        </div>
        <div class="data">
            <div class="d1">
                <p>123</p>
            
                <h2>阅读天数</h2>
            </div>
            <div class="d1">
                <p>123</p>
                <h2>阅读天数</h2>
            </div>
            <div class="d1">
                <p>123</p>
                <h2>阅读天数</h2>
            </div>
        </div>
        <div class="controls">
            <div class="form information">
                <el-icon class="left-icon">
                    <UserFilled />
                </el-icon>
                <p class="center-text">个人信息</p>
                <el-icon class="right-icon">
                    <ArrowRight />
                </el-icon>
            </div>
            <div class="form readHistroy">
                <el-icon class="left-icon">
                    <UserFilled />
                </el-icon>
                <p class="center-text">个人信息</p>
                <el-icon class="right-icon">
                    <ArrowRight />
                </el-icon>

            </div>
            <div class="form drafts">
                <el-icon class="left-icon">
                    <UserFilled />
                </el-icon>
                <p class="center-text">个人信息</p>
                <el-icon class="right-icon">
                    <ArrowRight />
                </el-icon>

            </div>
            <div class="form setter">
                <el-icon class="left-icon">
                    <UserFilled />
                </el-icon>
                <p class="center-text">个人信息</p>
                <el-icon class="right-icon">
                    <ArrowRight />
                </el-icon>

            </div>
        </div>
    </div>
</template>

<script setup>

</script>

<style lang="less" scoped>
.all {
    padding: 1rem;
    background-color: #F9FAFB;
    height: 100vh;
    box-sizing: border-box;

    .user {
        width: 343px;
        height: 266px;
        background: #fff;
        box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 20px;

        .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            overflow: hidden;
            background: #f0f0f0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .name h2 {
            margin: 0;
            font-size: 20px;
            color: #1F2937;
            text-align: center;
        }

        .desc {
            max-width: 280px;
            text-align: center;
            color: #6B7280;
            font-size: 14px;
            line-height: 1.5;
        }

        .bt {
            width: 100%;
            max-width: 200px;

            .el-button {
                width: 100%;
            }
        }
    }

    .data {
        margin-top: 1rem;
        width: 100%;
        height: 80px;
        background: #fff;
        box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 1rem;
        padding: 0 20px;

        .d1 {
            flex: 1;
            max-width: 150px;
            text-align: center;

            p {
                font-family: Roboto, Roboto;
                font-weight: 500;
                font-size: 20px;
                color: #7B68EE;
                margin: 0;
                margin-bottom: 6px;
            }

            h2 {
                font-family: Roboto, Roboto;
                font-weight: 400;
                font-size: 14px;
                color: #4B5563;
            }
        }
    }

.controls {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;

    .form {
            
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: #fff;
            
            border: 1px solid #F9FAFB;
            width: 100%;
            box-sizing: border-box;
    
            .left-icon {
                font-size: 20px;
                color: #7B68EE;
            }
    
            .center-text {
                flex: 1;
               overflow: hidden;
            }
    
            .right-icon {
                margin-left: 8px;
                color: #999;
            }
    }
 
}


}
</style>